if __name__=="__main__":
    ls=list(map(lambda x:int(x),input().strip().split()))
    result=[]
    for each in ls:
      if (each+1)%2==1:
        result.append(each)
    result_str=list(map(lambda x:str(x),result))
    print(" ".join(result_str))